package com.iflytek.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iflytek.bean.Role;
import com.iflytek.mapper.RoleMapper;
import com.iflytek.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService{
	
	@Autowired
	private RoleMapper roleMapper;

	@Override
	public List<Role> findAdminRoles(Integer id) {
		return roleMapper.getAdminRoles(id);
	}

	@Override
	public List<String> findAdminPermissions(Integer id) {
		return roleMapper.getAdminPermissions(id);
	}

}
